package vo;

/**
 * 跟复杂的查询结果保持一致
 */
public class StudentVO {
    private Integer sno;
    private String sname;
    private String sex;
    private Integer age;
    private String gname;
    private String gdesc;
    private String tname;

    public StudentVO() {
    }

    public StudentVO(Integer sno, String sname, String sex, Integer age, String gname, String gdesc, String tname) {
        this.sno = sno;
        this.sname = sname;
        this.sex = sex;
        this.age = age;
        this.gname = gname;
        this.gdesc = gdesc;
        this.tname = tname;
    }

    public Integer getSno() {
        return sno;
    }

    public void setSno(Integer sno) {
        this.sno = sno;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setSge(Integer sge) {
        this.age = age;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public String getGdesc() {
        return gdesc;
    }

    public void setGdesc(String gdesc) {
        this.gdesc = gdesc;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    @Override
    public String toString() {
        return   "sno=" + sno +
                ", sname='" + sname + '\'' +
                ", sex='" + sex + '\'' +
                ", sge=" + age +
                ", gname='" + gname + '\'' +
                ", gdesc='" + gdesc + '\'' +
                ", tname='" + tname + '\'' ;
    }
}
